home *** CD-ROM | disk | FTP | other *** search
- Path: freenet3.freenet.ufl.edu!afn03257
- From: afn03257@freenet3.freenet.ufl.edu (Daniel P Hudson)
- Newsgroups: comp.lang.c,comp.lang.c++,alt.msdos.programmer
- Subject: Re: Clearing the keyboard buffer
- Date: 23 Jan 1996 12:37:46 GMT
- Message-ID: <4e2kqq$eme@huron.eel.ufl.edu>
- References: <4dtqi4$60u@cdc2.cdc.net>
- <4e18m5$on1@gryphon.phoenix.net>
- NNTP-Posting-Host: freenet3.afn.org
- X-Newsreader: wsOMR/SOUP v1.00 [NR]
-
- In article <4e18m5$on1@gryphon.phoenix.net>,
- brucew@phoenix.net (Bruce Wedding) wrote:
-
- >> I'm using Turbo C++ v. 3.1 and I need to be able to clear the keyboard
- >> buffer.
-
- > I'll probably be flamed for mentioning this, but I'm going to anyway.
- > This is not STANDARD, in fact according to the ANSI Standard, it
- > results in undefined behavior. That ought to satisfy the pedants.
-
- No, but I sure got it for mentioning it, earlier.
- Type A personalities, you know I hate em'. sheesh! 8-)
-
- > fflush(stdin); /* will flush the keyboard in Turbo C */
-
- It also works in QuickC, which is where I had looked it up.
-
-